home *** CD-ROM | disk | FTP | other *** search
/ SPACE 1 / SPACE - Library 1 - Volume 1.iso / program / 113 / gfatip09 / gfatip09.doc next >
Text File  |  1987-09-19  |  3KB  |  91 lines

  1.  
  2.  
  3.                                                 September 19, 1987
  4.  
  5.  
  6.                            GFATIP09.DOC
  7.  
  8.                         by John B. Holder
  9.                      Senior Software Engineer
  10.                      Marathon Computer Press
  11.            Asst. Sysop on GEnie's MichTron Roundtable
  12.  
  13.  
  14.      This is the 9th in a planned series of GFA Tip files.  The 
  15. topic of this issue is creating a TTP file from GFA Basic.  In 
  16. this archive you will find the following files:
  17.  
  18.  
  19.               MORE.TTP =>Compiled GFA Basic TTP File
  20.           MORE.BAS => GFA Basic Source Code for Program
  21.                     GFATIP09.DOC => This file
  22.  
  23.      Since the source code file is pretty self explanatory, I will 
  24. keep this Doc file pretty short.  A bit of explanation comes 
  25. first.  A TTP file must be:
  26.                            Mandatory
  27.      1. Compiled
  28.                            Optional   
  29.      
  30.      2. Clicked directly from the Desktop
  31.      3. Used with a CLI
  32.      4. Called from a Parent Program using EXEC
  33.  
  34.      The only effective way to test a TTP program is to compile it 
  35. and test it directly.  You will note that you can not run the 
  36. source for the More program from the interpreter without 
  37. modification.  "So keep it in mind that you can not prepare TTP 
  38. programs without the GFA Basic Compiler."
  39.  
  40.      Since there has been a lot of discussion in the MichTron 
  41. Bulletin Board about doing this sort of thing, I felt it was time 
  42. to demonstrate it.  The little utility that I've cooked up for you 
  43. is nice to have around with a CLI that does not have the MORE 
  44. command.  Use it with this .DOC file to see just what it will do.
  45.  
  46. Try this Command:
  47.  
  48.      Double click on MORE.TTP
  49.  
  50.      Enter this on the command line:
  51.  
  52.      GFATIP09.DOC
  53.  
  54.      What will happen is the file will be displayed to the screen 
  55. line for line until end of file.  At the bottom of each page the 
  56. screen will pause until you press a key.  At the end of the file 
  57. you see "EOF Please press a key to end".  You will then be 
  58. returned to the desktop.  You can try the same thing with a CLI 
  59. such as DOS Shell by Tim Purves like this:
  60.  
  61.      From the prompt:
  62.  
  63.      A>run more gfatip09.doc
  64.      -or-
  65.      A>more.ttp gfatip09.doc
  66.  
  67.      (How your particular CLI functions may vary)
  68.  
  69.      When you press return, the file will be displayed on the 
  70. screen for you in much the same manner except that you are 
  71. returned to the CLI instead of the desktop. 
  72.  
  73. Word of Warning!!!!!!
  74.  
  75.      By examining the source code you will find that I have NOT 
  76. included ANY error trapping.  YOU MUST enter the correct file name 
  77. to be read by the More program along with it's extension.  It will 
  78. ONLY work properly with ASCII files (ie...non ascii files can be 
  79. displayed, however the results are unpredictable and may hang up 
  80. the computer).  So the bottom line is that you will have to do the 
  81. work to create a smooth running un-crashable program, this one is 
  82. just an example.
  83.  
  84.      I hope this file and code helps to answer all of the 
  85. questions that you all have had concerning this subject.  If you 
  86. happen to get stuck with something drop either myself or Rich Noe 
  87. (NOEGFA) a letter via GEnie Email and we'll try to help out.
  88.  
  89.                          John B. Holder
  90.  
  91.